package cn.tedu.wms.product.service.impl;

import cn.tedu.wms.product.mapper.SupplierProductMapper;
import cn.tedu.wms.product.opjo.entity.SupplierProduct;
import cn.tedu.wms.product.service.ISupplierProduct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class SupplierProductImpl implements ISupplierProduct {

    @Autowired
    SupplierProductMapper supplierProductMapper;

    @Override
    public void addNewBatch(List<SupplierProduct> supplierProductList) {
        log.info("开始执行批量插入供应商和商品的关联数据....");
        int rows = supplierProductMapper.insertBatch(supplierProductList);
        log.info("批量插入供应商和商品的关联数据成功，受影响的行数：{}", rows);
    }
}
